package com.youlin.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@NoArgsConstructor
@Data
@Accessors(chain=true)
public class PageInfo {

    @ApiModelProperty(value="查询页码", example = "1", required = true)
    private Long page = 1L;  // 查询页码

    @ApiModelProperty(value="每页条数", example = "10", required = true)
    private Long size = 10L;  // 每页条数

    @ApiModelProperty(value="总条数")
    private Long total;  // 总条数

    public PageInfo(Long page, Long size, Long total) {
        this.page = page;
        this.size = size;
        this.total = total;
    }

}
